﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 字典项
    /// </summary>
    [Table("T_DictItem")]
    public class DictItem:BaseEntity
    {
        /// <summary>
        /// 分类Id
        /// </summary>
        public long TypeId { get; set; }
        /// <summary>
        /// 项名称
        /// </summary>
        [MaxLength(20)]
        public string ItemName { get; set; }
        /// <summary>
        /// 项编码
        /// </summary>
        [MaxLength(50)]
        public string ItemCode { get; set; }
        /// <summary>
        /// 项值
        /// </summary>
        [MaxLength(50)]
        public string ItemValue { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public int? LevelIndex { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(50)]
        public string Remark { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int DisplayOrder { get; set; }
        
        public bool? IsEnd { get; set; }
        public string TypeCode { get; set; }
        public bool? IsDefault { get; set; }
    }
}
